Upgrade to Laravel 10+ and PHP 8.1+ with modern tooling#1
Merged
designvoid merged 1 commit into2.0from Jan 28, 2026
Merged
Conversation
- Update composer.json to require PHP ^8.1 and Laravel 10/11/12 - Add strict types declarations to all PHP files - Update all type hints from Exception to Throwable - Add proper return types and typed properties throughout - Update PHPUnit configuration for version 10.x - Replace Travis CI with GitHub Actions workflow - Update tests for PHPUnit 10.x compatibility - Update README with new requirements and upgrade guide BREAKING CHANGES: - Minimum PHP version is now 8.1 - Minimum Laravel version is now 10.0 - Status codes in JSON responses are now strings (per JsonAPI spec) - Handler constructors now type-hint Throwable instead of Exception https://claude.ai/code/session_01D66jVcfUoruENdy4YFLxPo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR modernizes the package by upgrading minimum requirements to PHP 8.1+ and Laravel 10.x, while adding GitHub Actions CI/CD and improving code quality standards.
Key Changes
declare(strict_types=1)to all source files.travis.ymlcomposer.jsonwith explicit Laravel framework dependencies and modern test tooling (PHPUnit 10+, Testbench 8-10)phpunit.xmlto use current schema and best practicesImplementation Details
ErrorHandledInterface|ErrorHandledCollectionInterface)https://claude.ai/code/session_01D66jVcfUoruENdy4YFLxPo